package com.pfzhang.reflection;

import java.io.Serializable;
import java.lang.reflect.Modifier;

class Person extends Thread implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

}


public class ClassInfo {
public static void main(String[] args) {
	Class<Person> c = Person.class;
	System.out.println(c.getName());
	System.out.println(c.getSimpleName());
	System.out.println(c.getPackage().getName());
	System.out.println(c.isPrimitive());
	System.out.println(c.isInterface());
	Class<?>[] si =c.getInterfaces();
	for (Class<?> class1 : si) {
		System.out.println(class1.getName());
	}
	
	int mod=c.getModifiers();
	System.out.println(Modifier.toString(mod));
	
	
}

}
